﻿#ifndef _CONFIG_
#define _CONFIG_

#include <windows.h>

class Config
{
public:
	//Init Window, DirectX, Input
	static const int KEYBOARD_BUFFER_SIZE = 1024;

	static const int GAME_SCREEN_RESOLUTION_640_480_24 = 0;
	static const int GAME_SCREEN_RESOLUTION_800_600_24 = 1;
	static const int GAME_SCREEN_RESOLUTION_1024_768_24 = 2;
	static const int GAME_SCREEN_RESOLUTION_640_480_32 = 3;
	static const int GAME_SCREEN_RESOLUTION_800_600_32 = 4;
	static const int GAME_SCREEN_RESOLUTION_1024_768_32 = 5;

	//Game constant
	static const int FRAME_RATE = 30; //Điều chỉnh tốc độ vẽ frame hình
	static const float GRAVITY;
	//**********************************************************
	
	//Mario 
	static const int MARIO_SPRITE_JUMP_COUNT = 1;
	static const int MARIO_SPRITE_JUMP_SPRITEPERROW = 1;

	//Mario image
	static const LPWSTR MARIO_SMALL_IMAGE_LEFT;
	static const LPWSTR MARIO_SMALL_IMAGE_JUMP_LEFT;

	static const LPWSTR MARIO_SMALL_IMAGE_RIGHT;
	static const LPWSTR MARIO_SMALL_IMAGE_JUMP_RIGHT;

	static const LPWSTR MARIO_BIG_IMAGE_LEFT;
	static const LPWSTR MARIO_BIG_IMAGE_JUMP_LEFT;

	static const LPWSTR MARIO_BIG_IMAGE_RIGHT;
	static const LPWSTR MARIO_BIG_IMAGE_JUMP_RIGHT;

	//Mario small sprite
	static const int MARIO_SMALL_SPRITE_WIDTH = 33;
	static const int MARIO_SMALL_SPRITE_HEIGHT = 33;
	static const int MARIO_SMALL_SPRITE_COUNT = 2;
	static const int MARIO_SMALL_SPRITE_SPRITEPERROW = 2;

	//Mario big sprite
	static const int MARIO_BIG_SPRITE_WIDTH = 33;
	static const int MARIO_BIG_SPRITE_HEIGHT = 60;
	static const int MARIO_BIG_SPRITE_COUNT = 3;
	static const int MARIO_BIG_SPRITE_SPRITEPERROW = 3;

	//Mario action
	static const float MARIO_MAX_SPEED;
	static const float MARIO_MAX_JUMP;
	static const float MARIO_MIN_JUMP;
	static const float MARIO_A;
	static const float MARIO_VY_FALL_DOWN;
	static const int MARIO_BIG_CHANGE_FRAME = 60;
	static const int MARIO_SMALL_CHANGE_FRAME = 130;
	//**********************************************
	//Scene Play
	static const LPWSTR PLAY_BACKGROUND;
	static const float PLAY_GROUND;

	//Monster**********
	static const float MONSTER_MAX_JUMP_MONSTER_DIED;

	//Mushroom
	static const LPWSTR MUSHROOM_IMAGE_MOVE;
	static const LPWSTR MUSHROOM_IMAGE_DIED_BY_SKILL;
	static const LPWSTR MUSHROOM_IMAGE_DIED_BY_TRAMPLED;

	static const int MUSHROOM_SPRITE_WIDTH = 33;
	static const int MUSHROOM_SPRITE_HEIGHT = 33;

	static const int MUSHROOM_SPRITE_MOVE_COUNT = 2;
	static const int MUSHROOM_SPRITE_MOVE_SPRITEPERROW = 2;

	static const int MUSHROOM_SPRITE_DEAD_COUNT = 1;
	static const int MUSHROOM_SPRITE_DEAD_SPRITEPERROW = 1;

	static const float MUSHROOM_SPEED;

	static const int MUSHROOM_CHANGE_FRAME = 170;
	


};
#endif